Optimal. Leaf size=105 \[ -\frac{2 \left (4 a^2+b^2\right ) \cos (c+d x) (b-a \tan (c+d x))}{15 d}-\frac{\cos ^3(c+d x) (b-4 a \tan (c+d x)) (a+b \tan (c+d x))^2}{15 d}+\frac{\sin (c+d x) \cos ^4(c+d x) (a+b \tan (c+d x))^3}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0946877, antiderivative size = 105, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3512, 737, 805, 637} \[ -\frac{2 \left (4 a^2+b^2\right ) \cos (c+d x) (b-a \tan (c+d x))}{15 d}-\frac{\cos ^3(c+d x) (b-4 a \tan (c+d x)) (a+b \tan (c+d x))^2}{15 d}+\frac{\sin (c+d x) \cos ^4(c+d x) (a+b \tan (c+d x))^3}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3512
Rule 737
Rule 805
Rule 637
Rubi steps
\begin{align*} \int \cos ^5(c+d x) (a+b \tan (c+d x))^3 \, dx &=\frac{\left (\cos (c+d x) \sqrt{\sec ^2(c+d x)}\right ) \operatorname{Subst}\left (\int \frac{(a+x)^3}{\left (1+\frac{x^2}{b^2}\right )^{7/2}} \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=\frac{\cos ^4(c+d x) \sin (c+d x) (a+b \tan (c+d x))^3}{5 d}-\frac{\left (\cos (c+d x) \sqrt{\sec ^2(c+d x)}\right ) \operatorname{Subst}\left (\int \frac{(-4 a-x) (a+x)^2}{\left (1+\frac{x^2}{b^2}\right )^{5/2}} \, dx,x,b \tan (c+d x)\right )}{5 b d}\\ &=-\frac{\cos ^3(c+d x) (b-4 a \tan (c+d x)) (a+b \tan (c+d x))^2}{15 d}+\frac{\cos ^4(c+d x) \sin (c+d x) (a+b \tan (c+d x))^3}{5 d}+\frac{\left (2 \left (4 a^2+b^2\right ) \cos (c+d x) \sqrt{\sec ^2(c+d x)}\right ) \operatorname{Subst}\left (\int \frac{a+x}{\left (1+\frac{x^2}{b^2}\right )^{3/2}} \, dx,x,b \tan (c+d x)\right )}{15 b d}\\ &=-\frac{2 \left (4 a^2+b^2\right ) \cos (c+d x) (b-a \tan (c+d x))}{15 d}-\frac{\cos ^3(c+d x) (b-4 a \tan (c+d x)) (a+b \tan (c+d x))^2}{15 d}+\frac{\cos ^4(c+d x) \sin (c+d x) (a+b \tan (c+d x))^3}{5 d}\\ \end{align*}
Mathematica [A] time = 0.691361, size = 150, normalized size = 1.43 \[ \frac{-30 b \left (3 a^2+b^2\right ) \cos (c+d x)-5 \left (9 a^2 b+b^3\right ) \cos (3 (c+d x))-9 a^2 b \cos (5 (c+d x))+150 a^3 \sin (c+d x)+25 a^3 \sin (3 (c+d x))+3 a^3 \sin (5 (c+d x))+90 a b^2 \sin (c+d x)-15 a b^2 \sin (3 (c+d x))-9 a b^2 \sin (5 (c+d x))+3 b^3 \cos (5 (c+d x))}{240 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.065, size = 125, normalized size = 1.2 \begin{align*}{\frac{1}{d} \left ({b}^{3} \left ( -{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{2}}{5}}-{\frac{2\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}}{15}} \right ) +3\,a{b}^{2} \left ( -1/5\,\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{4}+1/15\, \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) \right ) -{\frac{3\,b{a}^{2} \left ( \cos \left ( dx+c \right ) \right ) ^{5}}{5}}+{\frac{{a}^{3}\sin \left ( dx+c \right ) }{5} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.13995, size = 144, normalized size = 1.37 \begin{align*} -\frac{9 \, a^{2} b \cos \left (d x + c\right )^{5} -{\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} a^{3} + 3 \,{\left (3 \, \sin \left (d x + c\right )^{5} - 5 \, \sin \left (d x + c\right )^{3}\right )} a b^{2} -{\left (3 \, \cos \left (d x + c\right )^{5} - 5 \, \cos \left (d x + c\right )^{3}\right )} b^{3}}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.77587, size = 230, normalized size = 2.19 \begin{align*} -\frac{5 \, b^{3} \cos \left (d x + c\right )^{3} + 3 \,{\left (3 \, a^{2} b - b^{3}\right )} \cos \left (d x + c\right )^{5} -{\left (3 \,{\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (d x + c\right )^{4} + 8 \, a^{3} + 6 \, a b^{2} +{\left (4 \, a^{3} + 3 \, a b^{2}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]